package client.OCSF;

import java.io.StringWriter;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Statement;

import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Marshaller;

import server.product.Tickets;
import client.BillSysSeller;
import client.shoppingCartFrame.Transaction.Transaction;


public class MessageConverter extends BillSysSeller{
	
	JAXBContext context;
	
	StringWriter writer;
	
	String test;
	
	
	public void convertTransaction (Transaction transaction) throws JAXBException
	{
			writer = new StringWriter();
			context = JAXBContext.newInstance(Transaction.class);
			Marshaller m = context.createMarshaller();
			m.marshal(transaction, writer);
			String test = writer.toString();
			accept();
		

	}

}
